import request from "@/utils/request.ts";
import type {ParamGroupType} from "@/type/paramType.ts";

/**
 * 批量保存参数信息
 * @param value
 */
export const saveBatchParams = (value:ParamGroupType) => {
  return request({
    url: '/moyu/sql/param/batch',
    method: 'POST',
    data: value
  })
}

export const getParamGroupById = (groupId?: string) => {
  return request({
    url: `/moyu/sql/param/group/${groupId}`,
    method: 'GET',
  })
}
